package cn.com.ycm.abstractfactory;

import cn.com.ycm.abstractfactory.entity.*;

public class BMWFactory implements IAbstractFactory {
    @Override
    public ICar toCreateCar() {
        return new BMWCar();
    }

    @Override
    public ITruck toCreateTruck() {
        return new BMWTruck();
    }

    @Override
    public IEngineeringCar toCreateEngineeringCar() {
        return new BMWEngineeringCar();
    }
}
